home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmAboutGolf
- BackColor = &H00C0C0C0&
- BorderStyle = 3 'Fixed Double
- Caption = "About Golf"
- ClientHeight = 3570
- ClientLeft = 1440
- ClientTop = 1875
- ClientWidth = 6615
- Enabled = 0 'False
- Height = 3975
- Left = 1380
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3570
- ScaleWidth = 6615
- Top = 1530
- Width = 6735
- Begin CommandButton btnHints
- Caption = "Hints"
- Height = 315
- Left = 4860
- TabIndex = 4
- Tag = "/3d_inset/"
- Top = 720
- Width = 1515
- End
- Begin CommandButton btnCustomizing
- Caption = "Customizing"
- Height = 315
- Left = 4860
- TabIndex = 3
- Tag = "/3d_inset/"
- Top = 1200
- Width = 1515
- End
- Begin CommandButton btnHowToPlay
- Caption = "How To Play"
- Height = 315
- Left = 4860
- TabIndex = 2
- Tag = "/3d_inset/"
- Top = 240
- Width = 1515
- End
- Begin CommandButton btnCancel
- Caption = "Back To Game"
- Height = 315
- Left = 4860
- TabIndex = 1
- Tag = "/3d_inset/"
- Top = 3000
- Width = 1515
- End
- Begin TextBox txtHelp
- Enabled = 0 'False
- Height = 3075
- Left = 180
- MultiLine = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 0
- Tag = "/3d_inset/"
- Top = 240
- Width = 4395
- End
- Begin Image Image1
- Height = 480
- Left = 5400
- Picture = ABOUT.FRX:0000
- Tag = "/3d_raised/"
- Top = 1980
- Width = 480
- End
- Option Explicit
- '------------------------------------------------------------
- ' Constants and functions used in by ABOUT.FRM.
- '------------------------------------------------------------
- Const WM_USER = &H400
- Const EM_SETREADONLY = (WM_USER + 31)
- Declare Function SendMessage Lib "User" (ByVal hWnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Any) As Long
- Sub btnCancel_Click ()
- '------------------------------------------------------------
- ' Exit this form.
- '------------------------------------------------------------
- Unload Me
- End Sub
- Sub btnCustomizing_Click ()
- '------------------------------------------------------------
- ' Display the Customization help information.
- '------------------------------------------------------------
- DisplayHelp "CUSTOMIZ.TXT"
- End Sub
- Sub btnHints_Click ()
- '------------------------------------------------------------
- ' Display the Hints help information.
- '------------------------------------------------------------
- DisplayHelp "HINTS.TXT"
- End Sub
- Sub btnHowToPlay_Click ()
- '------------------------------------------------------------
- ' Display the How-To help information.
- '------------------------------------------------------------
- DisplayHelp "HOWTO.TXT"
- End Sub
- Sub DisplayHelp (AFile As String)
- '------------------------------------------------------------
- ' Display a particular help file in the control txtHelp.
- '------------------------------------------------------------
- txtHelp = ReadFile(AppPath & AFile)
- End Sub
- Sub Form_Load ()
- '------------------------------------------------------------
- ' When the form is loaded, make the text box read-only, and
- ' display the How-To help information.
- '------------------------------------------------------------
- Dim rc As Long
- CenterForm Me
-
- ' Set the text box to read-only mode:
- rc = SendMessage(txtHelp.hWnd, EM_SETREADONLY, True, 0&)
- btnHowToPlay_Click
- End Sub
- Sub Form_Paint ()
- '----------------------------------------------------------------------
- ' Put a 3D border around any control tagged "/3D_INSET/" or "/3D_RAISED/.
- '----------------------------------------------------------------------
- Paint3D Me
- End Sub
- Function ReadFile (ByVal Filename As String) As String
- '------------------------------------------------------------
- ' Read an entire file into a text string.
- '------------------------------------------------------------
- Dim fnum As Integer
- Dim AStr As String
- fnum = FreeFile
- Open Filename For Binary As fnum
- AStr = String$(LOF(fnum), " ")
- Get #fnum, , AStr
- Close fnum
- ReadFile = AStr
- End Function
-